#include <stdio.h>
#include <conio.h>
int main() {
	// varibl declration
	int NumOfGrade , i , grade ;
	int totalGrade = 0 ;
	int failsCount = 0 ;
	float ave = 0 ;
	char ans ;
// startover point	
	startover :
		// geting our for statemtn condition and denominator from user
		printf("how many dagre entering ? \n");
	scanf("%d", &NumOfGrade);
// for statement for geting dagres and cal our fail subj and 	numerator
	for ( i = 0 ; i < NumOfGrade ; i ++ ) {
		
		printf("\nenter the grade\n");
		scanf("%d", &grade);
	//numerator	
		totalGrade += grade ;
	// here we cal fail	
		if ( grade < 12 )
		failsCount ++;
	}
	// cal ave
	ave = (float) totalGrade / NumOfGrade ;
	
	printf("the ave of ur grade are  : \n");
	printf("%.2f\n", ave);
	printf("%d subj fails\n", failsCount);
	
	// startover
	printf("do you want to startover ? (Y or N)\n");
	
	scanf(" %c", &ans);
	
	if ( ans == 'Y')
		goto startover;
	
	
	getchar();
	return 0;
}
